package cn.bigway.app.weavingdesigner.action;

import cn.bigway.app.weavingdesigner.util.WdFileChooser;
import cn.bigway.app.weavingdesigner.util.WdImageViewPanel;
import cn.bigway.app.weavingdesigner.util.WdImageViewPanelFactory;
import cn.bigway.app.weavingdesigner.util.WdStepDialog;
import cn.bigway.app.weavingdesigner.util.WdStepPanel;

public class WdImportImageDialog extends WdStepDialog {

	private static final long serialVersionUID = 8174141015604934886L;

	private ColorChooserPanel colorChooserPanel;

	public WdImportImageDialog() {
		this.colorChooserPanel = new ColorChooserPanel();
		addStepPanel(this.colorChooserPanel);
	}
}

class ColorChooserPanel extends WdStepPanel {

	private static final long serialVersionUID = 4055569102006737469L;
	private WdImageViewPanel imageViewPanel;

	ColorChooserPanel() {
	
	}

	@Override
	protected boolean verify(WdStepDialog dialog) {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	protected void beforeEnter(WdStepDialog dialog) {
		this.imageViewPanel = WdImageViewPanelFactory.getInstance().create(
				new WdFileChooser(WdFileChooser.EXT_IMAGE));
		add(this.imageViewPanel);
		// TODO Auto-generated method stub
	}
}
